import Vue from 'vue'
import Vuex from 'vuex'
import { UPDATE_COLLAPSE } from '../const/index.js'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isCollapse: true
  },
  mutations: {
    [UPDATE_COLLAPSE] (state, payload) {
      state.isCollapse = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
